export function getUserInfo() {
  return [
    {
      id: 0,
      username: "admin",
      password: "123456",
      phone: "15569727151",
      createTime: "2022-03-17 15:05:53",
    },
    {
      id: 37,
      username: "cc",
      password: "123456",
      phone: "18896532669",
      createTime: "2022-04-12 15:44:10",
    },
    {
      id: 50,
      username: "fbh",
      password: "123456",
      phone: "17793490356",
      createTime: "2022-05-01 13:46:49",
    },
    {
      id: 52,
      username: "wscc",
      password: "123456",
      phone: "17793490356",
      createTime: "2022-05-01 18:18:35",
    },
    {
      id: 59,
      username: "樊勃辉",
      password: "123456",
      phone: "17793490356",
      createTime: "2022-06-02 10:08:21",
    },
  ];
}

export function login() {
  return {
    token:
      "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhZG1pbiIsImV4cCI6MTY3NjYyNzQzOX0.2YQiGmGIL4HhoCaAeZaevyqdvmMXsYziXTWmHHWiDIU",
    username: "admin",
  };
}

export function loadMenu() {
  return [
    {
      path: "/user",
      icon: "UserOutlined",
      name: "账户管理",
      id: 1,
      parentId: 0,
    },
    {
      path: "/setting",
      icon: "SettingOutlined",
      name: "系统设置",
      id: 2,
      parentId: 0,
    },
    {
      path: "",
      children: [
        {
          path: "/components/drawer",
          icon: "ProfileOutlined",
          name: "弹窗",
          id: 4,
          parentId: 3,
        },
        {
          path: "/components/timeGroup",
          icon: "InsertRowAboveOutlined",
          name: "时间选择器",
          id: 5,
          parentId: 3,
        },
        {
          path: "/test",
          icon: "BugOutlined",
          name: "test",
          id: 7,
          parentId: 3,
        },
        {
          path: "/components/canvasChart",
          icon: "BarChartOutlined",
          name: "canvas chart",
          id: 8,
          parentId: 3,
        },
        {
          path: "/components/codeEditor",
          icon: "FormOutlined",
          name: "代码编辑器",
          id: 9,
          parentId: 3,
        },
        {
          path: "/components/cropper",
          icon: "InstagramOutlined",
          name: "头像",
          id: 10,
          parentId: 3,
        },
        {
          path: "/components/basicTable",
          icon: "FileDoneOutlined",
          name: "table组件",
          id: 11,
          parentId: 3,
        },
        {
          path: "/components/buttonBar",
          icon: "FileDoneOutlined",
          name: "buttonBar",
          id: 12,
          parentId: 3,
        },
        {
          path: "/components/basicForm",
          icon: "FileDoneOutlined",
          name: "Form组件",
          id: 13,
          parentId: 3,
        },
        {
          path: "/components/basicInput",
          icon: "FileDoneOutlined",
          name: "input组件",
          id: 14,
          parentId: 3,
        },
      ],
      icon: "AppstoreOutlined",
      name: "组件",
      id: 3,
      parentId: 0,
    },
    { path: "/404", icon: "SmileOutlined", name: "404", id: 6, parentId: 0 },
  ];
}
